package com.diandian.backend.entrance.client;

import com.diandian.backend.entrance.dto.SmsSendDTO;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("diandian-sms")
//@FeignClient(value = "business-diandian-sms", url = "http://192.168.89.94:10003", path = "")
public interface DianDianSmsClient {

    /**
     * 发送短信
     * @param param 带有验签信息的请求体
     * @return
     */
    @PostMapping("/sms/send/inner")
    BaseResult sendSmsInner(@RequestBody SmsSendDTO param);

}
